package com.audaque.springboot.foshanupload.web.webdemo.model.domain;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Dog implements Serializable {


    private static final long serialVersionUID = -6288533334957513252L;
    private String name;
    private int age;
    private static String country;//static的不会被序列化
    private transient String color;//transient的不会被序列化

    public Dog(String name, int age, String country, String color) {
        this.name = name;
        this.age = age;
        this.country = country;
        this.color = color;
    }

    @Override
    public String toString() {
        return "Dog{" +
                "name='" + name + '\'' +
                ", age=" + age +
                ", color='" + color + '\'' +
                ", country='" + country + '\'' +
                '}';
    }
}
